#!/usr/local/python3
# -*- coding: utf-8 -*-

from flask import Flask

application = Flask(__name__)

@application.route("/")
def index():
    return '''<html>
  <head>
    <title>MoPaaS Flask框架测试</title>
    <meta charset="UTF-8">
    <style>
      body{
        background-color: #8FC5AE;
      }
      div{
        margin: 0 auto;
        text-align: center;
      }
      .main{
        background-color: white;
        width: 50%;
        padding: 10px;
        top: 20%;
        position: relative;
        border-width: 1px;
        border-color: #000;
        border-radius: 8px;
        box-shadow: #666 0px 0px 10px;
      }
    </style>
  </head>
  <body>
    <div class="main">
      <h1>这是一个MoPaaS Flask框架测试</h1>
    </div>
  </body>
</html>
'''

if __name__ == "__main__":
    application.run()